package com.sooth.system.dept.table;

import com.dream.system.annotation.Column;
import com.dream.system.annotation.Id;
import com.dream.system.annotation.Table;
import lombok.Data;

import java.sql.Types;

/**
 * @Description: 部门表
 * @Author: Lion Li
 * @Date: 2023-09-17 20:04:59
 */
@Data
@Table("sys_dept")
public class SysDept {


    /**
     * 部门id
     */
    @Id
    @Column(value = "dept_id", jdbcType = Types.BIGINT)
    private Long deptId;

    /**
     * 租户编号
     */
    @Column(value = "tenant_id", jdbcType = Types.VARCHAR)
    private String tenantId;

    /**
     * 父部门id
     */
    @Column(value = "parent_id", jdbcType = Types.BIGINT)
    private Long parentId;

    /**
     * 部门名称
     */
    @Column(value = "dept_name", jdbcType = Types.VARCHAR)
    private String deptName;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @Column(value = "del_flag", jdbcType = Types.INTEGER)
    private Integer delFlag;

    /**
     * 创建者
     */
    @Column(value = "create_by", jdbcType = Types.BIGINT)
    private Long createBy;

    /**
     * 创建时间
     */
    @Column(value = "create_time", jdbcType = Types.TIMESTAMP)
    private java.util.Date createTime;

    /**
     * 更新者
     */
    @Column(value = "update_by", jdbcType = Types.BIGINT)
    private Long updateBy;

    /**
     * 更新时间
     */
    @Column(value = "update_time", jdbcType = Types.TIMESTAMP)
    private java.util.Date updateTime;
}
